package Java.BlackHorse.IO.CharStream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test3 {
    //文件加密
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("a05IOTest\\view.jpg");
        FileInputStream fis = new FileInputStream("a05IOTest\\new.jpg");
        int b;
        while((b=fis.read()) != -1){
            fos.write(b ^10);
        }
        fis.close();
        fos.close();
    }
}
